import request from '@/utils/request'


//对标注结果进行格式化
export function startFormat(){
  return request({
    url: '/ade/emr/format',
    method: 'put'
  })
}


// 查询ADE Dataset列表
export function listEmr(query) {
  return request({
    url: '/ade/emr/list',
    method: 'get',
    params: query
  })
}

// 查询ADE Dataset详细
export function getEmr(id) {
  return request({
    url: '/ade/emr/' + id,
    method: 'get'
  })
}

// 随机获取EMR
export function  randomEmr(data){
   return request({
     url: '/ade/emr/random',
     method: 'post',
     data: data
   }
   )
}

// 新增ADE Dataset
export function addEmr(data) {
  return request({
    url: '/ade/emr',
    method: 'post',
    data: data
  })
}

// 修改ADE Dataset
export function updateEmr(data) {
  return request({
    url: '/ade/emr',
    method: 'put',
    data: data
  })
}

// 删除ADE Dataset
export function delEmr(id) {
  return request({
    url: '/ade/emr/' + id,
    method: 'delete'
  })
}
